home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / hdf3_2r2.lha / HDF3.2r2 / bkwdtest / README < prev    next >
Encoding:
Text File  |  1992-10-29  |  1.7 KB  |  40 lines

  1.                          NCSA HDF Version 3.2r2
  2.                                Oct. 1992
  3.  
  4. This directoy contains HDF3.2 backward compatibility test suite programs.  
  5. There is an HDF file,  two programs and a makefile in this directory.
  6.  
  7. The HDF file bctest.hdf contains three SDSs. The first SDS was written
  8. by a C program using HDF3.2r2, the second by a Fortran program using
  9. HDF3.2r2 and the third by a Fortran program using HDF3.1r5.
  10.  
  11.  
  12. Programs:
  13. 1. rs3.c -- A C program that uses HDF3.2 to read in the three SDS's from 
  14.          bctest.hdf. For each SDS read, rs3.c uses DFSDpre32() to test 
  15.          if the SDS was written by HDF3.1r5. If it is the case, rs3.c 
  16.          then reads all dimension-related information, such as dimensiom
  17.          scales and dimension-label etc., in a reversed order; and it calls
  18.          transar() to transpose the data array read by DFSDgetdata() and
  19.          reverse the dimension sizes at the same time.
  20.          Fianlly, rs3 tests the correctness of each data item and print out 
  21.          the contents of the SDS's, together with the original dataset and 
  22.          dimension-related information.
  23.  
  24. 2. rs3f.f -- A Fortran program that user HDF3.2 to read in the three 
  25.          SDS's from file bctest.hdf and print out the contents of the 
  26.          SDS's, together with the original dataset and dimension-related 
  27.          information.
  28.  
  29. Makefile is the makefile for backward compatibility test.
  30.  
  31. transar() in a general utility function contained in transarray.c, which is on
  32. the ftp server in subdirectory:
  33.  
  34.     ftp/HDF/contrib/NCSA
  35.  
  36. For users' convenience, a copy of transarray.c is included in this directory.
  37. rs3.c is an example for how to call DFKNTsize() and transar().
  38.  
  39.  
  40.